﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;

namespace QuanLyCayXanh.Models
{
    public class QuanLyCayXanhContext:DbContext
    {
        public QuanLyCayXanhContext()
            : base("DefaultConnection")
        {
            Database.SetInitializer<QuanLyCayXanhContext>(null);
        }
        
        public DbSet<FamilyTree> FamilyTrees { get; set; }
        public DbSet<GroupOfTree> GroupOfTrees { get; set; }
        public DbSet<District> Districts { get; set; }
        public DbSet<Ward> Wards { get; set; }
        public DbSet<Street> Streets { get; set; }
        public DbSet<Address> Addresses { get; set; }
        public DbSet<Tree> Trees { get; set; }
        public DbSet<Report> Reports { get; set; }
    }
}